<?php
// +----------------------------------------------------------------------
// | 网站首页
// +----------------------------------------------------------------------
// | Copyright (c) 2015
// +----------------------------------------------------------------------
// | Author: baiping 125618036@qq.com http://www.webipcode.com
// +----------------------------------------------------------------------
// |2015-12-9 下午5:21:13
// +----------------------------------------------------------------------
defined('BASEPATH') OR exit('No direct script access allowed');

class Welcome extends MY_Controller {

	
	public function index(){
		//获取推荐商标
		$trademark_commont_list = $this->getTrademark(array('state'=>0,'recommend'=>1, 'cat_id'=> 156),6);
		//获取所有商标分类
		$trademark_list = $this->getTrademark(array('state'=>0, 'cat_id'=> 156),'');

		$this->load->vars('trademark_commont', $trademark_commont_list);//推荐商标
		$this->load->vars('trademark', $trademark_list);//所有商标产品
		$this->load->view('index/index');
	}
	
	
	
	
}
